<%--
  User: wyz
  Date: 2024/7/22
  Time: 10:28
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>添加联系人</title>
</head>
<body>
<div class="header">
  <h3>添加联系人 <a href="/main.jsp">返回主页</a> </h3>
</div>
<form action="/contact/add.do" method="post">
  <div>
    <label for="name">姓名:</label>
    <input type="text" id="name" name="name" required value="${contact.name}">
  </div>
  <div>
    <label for="phone">电话:</label>
    <input type="phone" id="phone" name="phone" required value="${contact.phone}">
  </div>
  <div>
    <label for="email">邮箱:</label>
    <input type="email" id="email" name="email" required value="${contact.email}">
  </div>
  <div>
    <label for="position">职务:</label>
    <input type="position" id="position" name="position" required value="${contact.position}">
  </div>
  <div>
    <label for="department">部门:</label>
    <input type="department" id="department" name="department" required value="${contact.department}">
  </div>
  <div>
    <button type="submit">添加</button>
  </div>
</form>
</body>
</html>